

.LC0:
	.string "please input decimalism number:\n"

.LC1:
	.string "%d"
	
.LC2:
	.string "the hex number is %x"

.globl _main

_main:
	pushl %ebp
	movl %esp,%ebp
	subl $0x1000,%esp
	
	movl $0,-0x1000(%ebp) /* i */
	
	pushl $.LC0 
	movl $0,%eax 
	call _printf

    leal -0x1000(%ebp),%edi /* i */
	pushl %edi 
	pushl $.LC1 
	movl $0,%eax 
	call _scanf 
	
	movl -0x1000(%ebp),%eax /* i */
	pushl %eax 
	pushl $.LC2 
	movl $0,%eax 
	call _printf 
	
	movl $0,%eax
	leave
	ret
	